#ifndef CHECKOUTMANAGEMENT_H
#define CHECKOUTMANAGEMENT_H

#include "ordersform.h"
#include <QWidget>
#include <QSqlDatabase>
#include <QSqlQuery>
#include <QMessageBox>
#include <QDebug>
#include <QSqlError>
#include <QInputDialog>
#include <QListWidgetItem>
#include <QListWidget>
#include <QPrintPreviewDialog>
#include <QPrintDialog>
#include <QPrinter>
#include <QPainter>
#include <QDateTime>
#include <QKeyEvent>

namespace Ui {
class checkoutManagement;
}

class checkoutManagement : public QWidget
{
    Q_OBJECT
signals:
    void checkoutSend(QString message);

public:
    explicit checkoutManagement(QWidget *parent = nullptr);
    ~checkoutManagement();

private slots:
    void drawPic(QPrinter* printerPixmap);

    void on_ordersList_itemClicked(QListWidgetItem *item);

private:
    Ui::checkoutManagement *ui;
    QSqlDatabase db;
    void initList();
    int globalid;
};

#endif // CHECKOUTMANAGEMENT_H
